package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.Contact;
import pojo.Staff;
import pojo.UserContact;

import java.util.List;

public interface ContactMapper {
    List<Contact> selectContactOfID(@Param("ID") String ID);

    List<UserContact> selectUserContactOfUserContact(@Param("userNo") String userNo,
                                                     @Param("ID") String ID);

    List<Contact> selectContactsOfUserNo(@Param("userNo")String userNo);

    void deleteContactLink(@Param("userNo")String userNo, @Param("ID")String ID);

    void addContactLink(@Param("userNo")String userNo, @Param("ID")String ID);

    void addContact(@Param("ID")String ID,
                           @Param("trueName")String trueName,
                           @Param("sex")String sex,
                           @Param("teleNum")String teleNum);
}
